package com;

import java.util.Date;

import cn.hutool.core.date.DateUnit;

public class TestHutoolDateUtil {
	public static void main(String[] args) throws Exception {
		Date date1 = new Date();
		Long secondS = 1030L;
		Thread.sleep(1030);
		Date date2 = new Date();
		Long second = cn.hutool.core.date.DateUtil.between(date1, date2, DateUnit.SECOND);
		System.out.println(second);
	}

}
